package com.kis.service.order

import com.kis.config.FeignConfiguration
import com.kis.model.ResponseData
import com.kis.model.order.Order
import org.springframework.cloud.netflix.feign.FeignClient
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RequestMethod
import org.springframework.web.bind.annotation.RequestParam

/**
 * Created by wongloong on 16-12-8.
 */
@FeignClient("SERVICE-ORDER", configuration = arrayOf(FeignConfiguration::class), fallback = OrderFallback::class)
interface OrderClient {
    @RequestMapping("/order", method = arrayOf(RequestMethod.POST))
    fun saveOrUpdate(@RequestParam("orderJson") orderJson: String): ResponseData
}